package org.vectrics.user;


import org.vectrics.common.synch.SynchHolder;


public class UserSynch extends SynchHolder {
	private UserSummary userSummary = null;
	private User user = null;
	private Long id = null;

	
	public UserSynch() {
		super();
	}
	

	/**
	 * @return
	 */
	public User getUser() {
		return user;
	}

	/**
	 * @param user
	 */
	public void setUser(User user) {
		this.user = user;
	}

	public Long getId() {
		
		if (userSummary != null) {
			this.id = userSummary.getId();
		}
		return(this.id);
	}
	
	public void setId(Long id) {
		this.id = id;
	}


	/**
	 * @return Returns the userSummary.
	 */
	public UserSummary getUserSummary() {
		return userSummary;
	}

	/**
	 * @param userSummary The userSummary to set.
	 */
	public void setUserSummary(UserSummary userSummary) {
		this.userSummary = userSummary;
	}

}
